<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>归档</title>
    <link rel="icon" th:href="@{/images/archives.png}" sizes="32x32">
</head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
<link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
<link rel="stylesheet" href="../static/css/mouseeffect.css.css" th:href="@{/css/mouseeffect.css}">

<body>
<!-- 导航 -->
<nav th:replace="_fragments :: menu(4)"></nav>

<!-- 中间内容 -->
<div class="m-padded-tb-large">

    <div class="ui container">
        <!-- herder -->
        <div class="ui top attached padded segment">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <h3 class="ui teal header">归档</h3>
                </div>
                <div class="right aligned column">
                    共 <h2 class="ui orange header m-inline-block m-padded-tb-mini" th:text="${blogCount}">999</h2>篇博客
                </div>
            </div>
        </div>


        <!-- 大板块 -->
        <th:block th:each="item : ${archiveMap}">
            <h2 class="ui center aligned teal header">
                <div class="ui huge label" th:text="${item.key}"> 2022</div>
            </h2>
            <div class="ui fluid vertical menu">
                <!-- 小板块 -->
                <a th:href="@{/blog/{id}(id=${blog.id})}" th:each="blog : ${item.value}" target="_blank" class="item">
                    <span>
                        <i class="mini teal circle icon"></i>&nbsp&nbsp&nbsp <span th:text="${blog.title}">测试归档</span>
                        <div class="ui teal basic left pointing label m-padded-tb-mini"
                             th:text="${#dates.format(blog.updateTime,'MMMdd')}">1.22</div>
                    </span>
                    <div class="ui orange left label m-padded-tb-mini" th:text="${blog.flag}">原创</div>
                </a>
            </div>
        </th:block>
    </div>
</div>

<div>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
</div>

<!-- 底部footer -->
<footer th:replace="_fragments :: footer"></footer>

</body>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<script type="text/javascript" th:src="@{/js/mouse.js}"></script>
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
        return false;
    });


    // $('#playButton').popup({
    //     popup: $('.pay.popup'),
    //     on: 'click',
    //     position: 'buttom center'
    // });

</script>
<style>
    body {
        background: url('https://static.talkxj.com/config/643f28683e1c59a80ccfc9cb19735a9c.jpg') center center / cover no-repeat;
        background-attachment: fixed;
    }
</style>

</html>